<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML>
<html>
<head>
	<title>项目管理系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css"/>
	<style type="text/css">
		body{
			background-image:url(static/img/bg.png);
		}
	</style>
	<script type="text/javascript" src="static/js/jquery.js"></script>
	<script type="text/javascript" src="static/js/bootstrap.js"></script>
</head>
<body class="body">
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">Kaishengit PMS</a>			
			</div>		
		</div>	
	</div>
	<div class="container">
		<div class="row" style="margin-top:60px">
			<div class="span3">
				<div style="padding:15px">
					<ul class="nav nav-list">
						<li class="nav-header" style="font-size:14px">${sessionScope.userProject.project.name }</li>
						<li class="divider"></li>
						<li><a href="project.jspx"><i class="icon-home"></i>最新动态</a></li>
						<li class="active"><a href="goal.jspx"><i class="icon-white icon-flag"></i>目标</a></li>
						<li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
						<li><a href="files.jspx"><i class="icon-file"></i>文件共享</a></li>
						<li><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>
						<li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
						<li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
						<li><a href="set.jspx"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
								
			</div>
			<div class="span9">				
				<c:choose>
					<c:when test="${ empty task }">任务为空</c:when>
					<c:otherwise>
						<ul class="breadcrumb" style="margin-top:40px;margin-bottom:0px">
						<li><i class="icon-flag"></i>${task.name }</li>													
						<li style="float:right"><i class="icon-edit"></i><a href="task.jspx?m=edit&&id=${ task.id}" class="link-black">编辑</a></li>
						</ul>
						<div style="border:1px solid #ccc; border-top:none;padding:15px;">
							<dl>
								<dt><i class="icon-bookmark"></i>${task.name}&nbsp;&nbsp;<i class="icon-user"></i>${task.user.name}</dt><br />
								<dd>内容：&nbsp;&nbsp;${task.describe}</dd><br/>
								<dd>任务开始时间：${task.begintime} &nbsp;任务结束时间：${task.endtime} &nbsp;任务的创建时间：${task.createtime} <br /><br/>任务的状态：${task.status}&nbsp;任务的紧急程度： ${task.rank} </dd>
							</dl>
							<b style="color:#ff875b">任务进度：</b>
							<div class="progress progress-danger progress-striped active" style="margin-top:15px">
									<div class="bar" style="width: ${task.rate }%;">${task.rate }%</div>
							</div>	
						</div>					
					</c:otherwise>
				</c:choose>								
			</div>		
		</div>
	</div>
	
	
</body>
</html>